<?php


namespace chixian\Libraries\HttpServer;


use Psr\Http\Message\ResponseInterface as ResponseInterfacePsr;

interface ResponseInterface extends ResponseInterfacePsr
{
    /**
     * rjson 格式公司接口格式
     * @param array $data
     * @param int $recode
     * @param string $msg
     * @return ResponseInterfacePsr
     */
    public function rJson(array $data = [], int $recode = 0, string $msg = '成功'): ResponseInterfacePsr;
}